<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/com/com.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>list</title>
<!-- 分页css -->
<link href="<%=path %>/css/qita.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
  var url = "<%= basePath%>/sys/SysVillage_openList.action";    //分页url
  </script>
<body>

	<form method="post" action="<%= basePath%>/sys/SysVillage_openList.action" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">村信息列表</strong> <a href="" style="float:right; display:none;">添加字段</a>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li><a class="button border-main icon-plus-square-o" href="<%=basePath %>/sys/SysVillage_openAdd.action">添加村</a></li>
					<li>搜索：</li>
					<li>首页
					<li><input type="text" placeholder="请输入搜索关键字" name="sysVillageName" class="input" style="width:250px; line-height:17px;display:inline-block" /><a href="<%=basePath %>/sys/SysVillage_openList.action" class="button border-main icon-search" onclick="changesearch()">查询</a></li>
				</ul>
			</div>
		</div>
	</form>
	<table class="tablelist">
		<thead>
			<tr>
				<th><input name="" type="checkbox" value="" checked="checked" /></th>
				<th width="100" style="text-align:left; padding-left:20px;">ID</th>
				<th>县</th>
				<th>镇</th>
				<th>村</th>
				<p:permissions menu="deleteRight,editRight">
					<th>操作</th>
				</p:permissions>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="pageResult.data" id="id">
				<tr>
					<td><input name="" type="checkbox" value="" /></td>
					<td>${id}</td>
					<td>${countNameMap.get(countId) }</td>
					<td>${townNameMap.get(townId) }</td>
					<td>${villageName }</td>
					<p:permissions menu="deleteRight,editRight">
					<td>&nbsp; 
						<p:permissions right="deleteRight">
								<a href="<%=basePath %>/sys/SysVillage_delete.action?id=${id}" class="button border-red" ><span class="icon-trash-o"></span>删除</a>&nbsp;&nbsp;
			        	</p:permissions>
		        	    <p:permissions right="editRight">
								<a href="<%=basePath %>/sys/SysVillage_openUpdate.action?id=${id}" class="button border-main"><span class="icon-edit"></span>修改</a>
					    </p:permissions>
						</td>
					</p:permissions>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<jsp:include page="/WEB-INF/page/web/unit/page.jsp" />
</body>
</html>
